package csdn;

public class Csdn {
    public static void main(String[] args) {
        String str="helloworld";
        System.out.println(str.substring(3,5));
    }
    public static void main30(String[] args) {
        String str = "192.1|6*8.1.1" ;
        String[] result = str.split("\\*") ;
        for(String s: result) {
            System.out.println(s);
        }
    }
    public static void main29(String[] args) {
        String str = "hello world hello swpu" ;
        String[] result = str.split(" ",3) ;
        for(String s: result) {
            System.out.println(s);
        }
    }
    public static void main28(String[] args) {
        String str = "hello world hello swpu" ;
        String[] result = str.split(" ") ;
        for(String s: result) {
            System.out.println(s);
        }
    }
    public static void main27(String[] args) {
        String str = "helloworld" ;
        System.out.println(str.replaceAll("l", "_"));
        System.out.println(str.replaceFirst("l", "_"));
    }
    public static void main26(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="skd";
        System.out.println(str1.endsWith(str2));
    }
    public static void main25(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="bask";
        System.out.println(str1.startsWith(str2,2));
    }
    public static void main24(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="ac";
        System.out.println(str1.startsWith(str2));
    }
    public static void main23(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="askj";
        System.out.println(str1.lastIndexOf(str2,13));
    }
    public static void main22(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="askj";
        System.out.println(str1.lastIndexOf(str2,1));
    }
    public static void main21(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="askjsass";
        System.out.println(str1.indexOf(str2));
    }
    public static void main20(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="askj";
        System.out.println(str1.indexOf(str2));
    }
    public static void main19(String[] args) {
        String str1="acbaskjcbaskd";
        String str2="acbaskj";
        System.out.println(str1.contains(str2));
    }
    public static void main18(String[] args) {
        String str2="hello";
        String str1="hello";
        System.out.println(str1.compareTo(str2));
    }
    public static void main17(String[] args) {
        String str="Hello";
        String str1="hello";
        System.out.println(str.equalsIgnoreCase(str1));
    }
    public static void main16(String[] args) {
        String str = "Hello";
        str = "h" + str.substring(1);
        System.out.println(str);
    }
    public static void main15(String[] args) {
        String str = "hello" ;
        str = str + " world" ;
        str += "!!!" ;
        System.out.println(str);
    }
    public static void main14(String[] args) {
        String str1="abc";
        String str2=str1;
        str1="def";
        System.out.println(str1==str2);
    }
    public static void main13(String[] args) {
        String str1="abcdef";
        String str2=new String("abc")+new String("def");
        System.out.println(str1==str2);
    }
    public static void main12(String[] args) {
        String str1="abcdef";
        String str2="abc"+new String("def");
        System.out.println(str1==str2);
    }
    public static void main11(String[] args) {
        String str1="abcdef";
        String str2="abc";
        String str3=str2+"def";
        System.out.println(str1==str3);
    }
    public static void main10(String[] args) {
        String str1="abcdef";
        String str2="abc"+"def";
        System.out.println(str1==str2);
    }
    public static void main9(String[] args) {
        String str8=new String("abcdef");
        String str7=new String("abcdef");
        System.out.println("str7和str8是否相等"+(str7.equals(str8)));
    }
    public static void main8(String[] args) {
        String str8="abcdef";
        String str7=new String("abcdef");
        System.out.println("str7和str8是否相等"+(str7.equals(str8)));
    }
    public static void main7(String[] args) {
        String str8=new String("abcdef");
        String str7=new String("abcdef");
        System.out.println("str7和str8是否相等"+(str7==str8));
    }
    public static void main6(String[] args) {
        String str8="abcdef";
        String str7=new String("abcdef");
        System.out.println("str7和str8是否相等"+(str7==str8));
    }
    public static void main5(String[] args) {
        String str5="abcdef";
        String str6="abcdef";
        System.out.println("str5和str6是否相等"+(str5==str6));
    }
    public static void main4(String[] args) {
        int a=520;
        int b=520;
        System.out.println("a==b:"+(a==b));
    }
    public static void main3(String[] args) {
        char ch[]={'a','b','c','d','e','f'};
        String str4=new String(ch,1,0);
        System.out.println(str4);
    }
    public static void main2(String[] args) {
        byte a[]={94,95,94};
        String str3=new String(a);
        System.out.println(str3);
    }
    public static void main1(String[] args) {
        char ch[]={'S','W','P','U'};
        String str3=new String(ch,0,1);
        System.out.println(str3);
    }
}
